﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001239 RID: 4665
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartTimedFarmElementScRsp : IMessage<StartTimedFarmElementScRsp>, IMessage, IEquatable<StartTimedFarmElementScRsp>, IDeepCloneable<StartTimedFarmElementScRsp>, IBufferMessage
	{
		// Token: 0x17003B2E RID: 15150
		// (get) Token: 0x0600D148 RID: 53576 RVA: 0x0023412B File Offset: 0x0023232B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartTimedFarmElementScRsp> Parser
		{
			get
			{
				return StartTimedFarmElementScRsp._parser;
			}
		}

		// Token: 0x17003B2F RID: 15151
		// (get) Token: 0x0600D149 RID: 53577 RVA: 0x00234132 File Offset: 0x00232332
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartTimedFarmElementScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003B30 RID: 15152
		// (get) Token: 0x0600D14A RID: 53578 RVA: 0x00234144 File Offset: 0x00232344
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartTimedFarmElementScRsp.Descriptor;
			}
		}

		// Token: 0x0600D14B RID: 53579 RVA: 0x0023414B File Offset: 0x0023234B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartTimedFarmElementScRsp()
		{
		}

		// Token: 0x0600D14C RID: 53580 RVA: 0x00234154 File Offset: 0x00232354
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartTimedFarmElementScRsp(StartTimedFarmElementScRsp other) : this()
		{
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this.worldLevel_ = other.worldLevel_;
			this.mEGEJFGAKDL_ = other.mEGEJFGAKDL_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600D14D RID: 53581 RVA: 0x002341B8 File Offset: 0x002323B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartTimedFarmElementScRsp Clone()
		{
			return new StartTimedFarmElementScRsp(this);
		}

		// Token: 0x17003B31 RID: 15153
		// (get) Token: 0x0600D14E RID: 53582 RVA: 0x002341C0 File Offset: 0x002323C0
		// (set) Token: 0x0600D14F RID: 53583 RVA: 0x002341C8 File Offset: 0x002323C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17003B32 RID: 15154
		// (get) Token: 0x0600D150 RID: 53584 RVA: 0x002341D1 File Offset: 0x002323D1
		// (set) Token: 0x0600D151 RID: 53585 RVA: 0x002341D9 File Offset: 0x002323D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003B33 RID: 15155
		// (get) Token: 0x0600D152 RID: 53586 RVA: 0x002341E2 File Offset: 0x002323E2
		// (set) Token: 0x0600D153 RID: 53587 RVA: 0x002341EA File Offset: 0x002323EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorldLevel
		{
			get
			{
				return this.worldLevel_;
			}
			set
			{
				this.worldLevel_ = value;
			}
		}

		// Token: 0x17003B34 RID: 15156
		// (get) Token: 0x0600D154 RID: 53588 RVA: 0x002341F3 File Offset: 0x002323F3
		// (set) Token: 0x0600D155 RID: 53589 RVA: 0x002341FB File Offset: 0x002323FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MEGEJFGAKDL
		{
			get
			{
				return this.mEGEJFGAKDL_;
			}
			set
			{
				this.mEGEJFGAKDL_ = value;
			}
		}

		// Token: 0x0600D156 RID: 53590 RVA: 0x00234204 File Offset: 0x00232404
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartTimedFarmElementScRsp);
		}

		// Token: 0x0600D157 RID: 53591 RVA: 0x00234214 File Offset: 0x00232414
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartTimedFarmElementScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.BattleInfo, other.BattleInfo) && this.Retcode == other.Retcode && this.WorldLevel == other.WorldLevel && this.MEGEJFGAKDL == other.MEGEJFGAKDL && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600D158 RID: 53592 RVA: 0x00234284 File Offset: 0x00232484
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.WorldLevel != 0U)
			{
				num ^= this.WorldLevel.GetHashCode();
			}
			if (this.MEGEJFGAKDL != 0U)
			{
				num ^= this.MEGEJFGAKDL.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600D159 RID: 53593 RVA: 0x0023430B File Offset: 0x0023250B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600D15A RID: 53594 RVA: 0x00234313 File Offset: 0x00232513
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600D15B RID: 53595 RVA: 0x0023431C File Offset: 0x0023251C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.WorldLevel != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.WorldLevel);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.MEGEJFGAKDL != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.MEGEJFGAKDL);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600D15C RID: 53596 RVA: 0x002343AC File Offset: 0x002325AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.WorldLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorldLevel);
			}
			if (this.MEGEJFGAKDL != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MEGEJFGAKDL);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600D15D RID: 53597 RVA: 0x00234434 File Offset: 0x00232634
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartTimedFarmElementScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.WorldLevel != 0U)
			{
				this.WorldLevel = other.WorldLevel;
			}
			if (other.MEGEJFGAKDL != 0U)
			{
				this.MEGEJFGAKDL = other.MEGEJFGAKDL;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600D15E RID: 53598 RVA: 0x002344C4 File Offset: 0x002326C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600D15F RID: 53599 RVA: 0x002344D0 File Offset: 0x002326D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 26U)
				{
					if (num == 8U)
					{
						this.WorldLevel = input.ReadUInt32();
						continue;
					}
					if (num == 26U)
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.MEGEJFGAKDL = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040053EA RID: 21482
		private static readonly MessageParser<StartTimedFarmElementScRsp> _parser = new MessageParser<StartTimedFarmElementScRsp>(() => new StartTimedFarmElementScRsp());

		// Token: 0x040053EB RID: 21483
		private UnknownFieldSet _unknownFields;

		// Token: 0x040053EC RID: 21484
		public const int BattleInfoFieldNumber = 3;

		// Token: 0x040053ED RID: 21485
		private SceneBattleInfo battleInfo_;

		// Token: 0x040053EE RID: 21486
		public const int RetcodeFieldNumber = 14;

		// Token: 0x040053EF RID: 21487
		private uint retcode_;

		// Token: 0x040053F0 RID: 21488
		public const int WorldLevelFieldNumber = 1;

		// Token: 0x040053F1 RID: 21489
		private uint worldLevel_;

		// Token: 0x040053F2 RID: 21490
		public const int MEGEJFGAKDLFieldNumber = 8;

		// Token: 0x040053F3 RID: 21491
		private uint mEGEJFGAKDL_;
	}
}
